package com.tourism.tourismGYM.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;


/**
 * @author gym 活动项目管理实体类
 */
@Entity
@Table(name = "tourism_apm")
public class TourismApm implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -8147074098512976766L;

	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	private String id;
	/**
	 * 活动是否开启0：否 ，1： 是
	 */
	@Column(name = "is_start")
	private String isStart;
	/**
	 * 报名人数
	 */
	@Column(name = "applicant_number")
	private int applicantNumber;
	/**
	 * 联系电话
	 */
	@Column(name = "telephone")
	private String telephone;
	/**
	 * 人均单价
	 */
	@Column(name = "per_unit_price")
	private int perUnitPrice;
	/**
	 * 活动地点
	 */
	@Column(name = "active_address")
	private String activeAddress;
	/**
	 * 1：自驾游； 2：跟随社团 3：部门组织。
	 */
	@Column(name = "active_type")
	private int activeType;
	/**
	 * 活动名称
	 */
	@Column(name = "active_name")
	private String activeName;
	/**
	 * 活动开始时间
	 */
	@Column(name = "begin_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date beginTime;
	/**
	 * 活动结束时间
	 */
	@Column(name = "end_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date endTime;
	@Column(name = "create_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getIsStart() {
		return isStart;
	}

	public void setIsStart(String isStart) {
		this.isStart = isStart;
	}

	public int getApplicantNumber() {
		return applicantNumber;
	}

	public void setApplicantNumber(int applicantNumber) {
		this.applicantNumber = applicantNumber;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public int getPerUnitPrice() {
		return perUnitPrice;
	}

	public void setPerUnitPrice(int perUnitPrice) {
		this.perUnitPrice = perUnitPrice;
	}

	public String getActiveAddress() {
		return activeAddress;
	}

	public void setActiveAddress(String activeAddress) {
		this.activeAddress = activeAddress;
	}

	public int getActiveType() {
		return activeType;
	}

	public void setActiveType(int activeType) {
		this.activeType = activeType;
	}

	public String getActiveName() {
		return activeName;
	}

	public void setActiveName(String activeName) {
		this.activeName = activeName;
	}

	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
